import LoginForm from './components/LoginForm'
import logo from '../../assets/images/logo.png'
import './style/index.scss'
import { useEffect } from 'react'

const Login = () => {
  useEffect(() => {
     // window.localStorage.clear()
    window.localStorage.removeItem("persist:reduxState");
  }, [])

  return (
    <div className="login-container">
      <div className="login-box">
        <div className="login-form">
          <div className="login-logo">
            <img className='login-icon' src={logo} alt="logo" />
            <span className="logo-text">Hooks-Admin</span>
          </div>
          <LoginForm />
        </div>
      </div>
    </div>
  )
}

export default Login